package com.sirui.spider.kuai.entity;

public final class CommonConstants {
    public static final String Template_Key = "templateKey";
    public static final String Inner_Config_freeMarkerConfiguration = "freeMarkerConfiguration";
    public static final String HIBERNATE_GENERATOR_UUID = "hibernate-uuid";
    public static final String HIBERNATE_STRATEGY_UUID = "org.hibernate.id.UUIDGenerator";
    public static final String HIBERNATE_GENERATOR_ASSIGNED = "hibernate-assigned";
    public static final String HIBERNATE_STRATEGY_ASSIGNED = "assigned";
    public static final String Config_entityManagerFactory = "entityManagerFactory";
    public static final String Config_transactionManager_Name = "transactionManager";
    public static final int HIBERNATE_UUID_LENGTH = 36;
    public static final int TENANT_CODE_LENGTH = 100;
    public static final int APPLICATION_NAME_LENGTH = 50;
    public static final String TENANT_CODE_REQUEST_KEY = "tenantCode";

    public CommonConstants() {
    }

    public enum PwdEncoder {
        MD5,
        SHA256,
        SHA512,
        BASE64,
        BASE64_UrlSafe,
        NONE;

        PwdEncoder() {
        }
    }

    public enum Gender {
        male,
        female;

        Gender() {
        }
    }

    public enum SecurityLevel {
        none(0),
        secret(1),
        confidential(2),
        top_secret(3);

        private final int levelNum;

        SecurityLevel(int levelNum) {
            this.levelNum = levelNum;
        }

        public static SecurityLevel valueOfLevelNum(int levelNum) {
            SecurityLevel securityLevel = null;
            SecurityLevel[] var2 = values();
            int var3 = var2.length;

            for (int var4 = 0; var4 < var3; ++var4) {
                SecurityLevel level = var2[var4];
                if (level.levelNum == levelNum) {
                    securityLevel = level;
                }
            }

            return securityLevel;
        }

        public int getLevelNum() {
            return this.levelNum;
        }
    }
}
